/*
Copyright (C) 2008 raohmaru <http://www.raohmaru.com>

This file is part of Raohmaru AS3 Framework.

Raohmaru AS3 Framework is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Raohmaru AS3 Framework is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with Raohmaru AS3 Framework.  If not, see <http://www.gnu.org/licenses/>.
*/

package jp.raohmaru.system.data
{

/**
 * La clase XMLData hereda de ExternalData la funcionalidad de carga de datos externos y añade la naturaleza de XML al tipo de datos almacenados.
 * @author raohmaru
 * @version 1.0
 */
public class XMLData extends ExternalData
{
	/**
	 * Obtiene una copia del objeto XML de datos interno.
	 */
	override public function get data() : *
	{
		return (_data) ? XML(_data).copy() : null;
	}

	/**
	 * Crea un objeto XMLData.
	 */
	public function XMLData()
	{
		XML.ignoreWhitespace = true;
	}

	/**
	 * @inheritDoc
	 */
	override public function toString() : String
	{
		return XML(_data).toXMLString();
	}
}
}